<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        // [1,2,3] instanceof Array
        var a = '10';
        var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
        console.log(arr);
        var num = new Number(a);
        console.log(num);
        var str = new String('12a');
        var str1 = '12a';
        console.log(str);
        var boo = new Boolean(true);
        console.log(boo);
        console.log(arr instanceof Array);
        console.log([1, 2, 3] instanceof Array);
        console.log(num instanceof Number);
        console.log(str instanceof String);
        console.log(str === str1);
        console.log(boo instanceof Boolean);
        //instanceof 运算符用于检测构造函数的 prototype 属性是否出现在某个实例对象的原型链上。
        //暂未理解//猜想为检测前面的对象与后者的对象类型是否匹配,匹配输出true,否则输出false

        //Array.isArray([1,2,3])
        console.log(Array.isArray(arr));

        //arr.push(添加的数组元素,添加的数组元素)有返回值,返回值是新数组的长度及arr.length
    </script>
</head>

<body>

</body>

</html>